package com.tvunetworks.center.user.mapper;

import com.tvunetworks.center.user.model.Menu;
import com.tvunetworks.center.user.model.MenuBar;
import com.tvunetworks.center.user.model.vo.MenuBarVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * @program:
 * @description:
 * @author HenryChen
 * @create: 5/23/2019 1:54 PM
 **/
public interface MenuBarMapper extends Mapper<MenuBar> {
    /**
     *
     * @return List
     */
    List<Menu> listMenu();

    /**
     *
     * @return List
     */
    List<MenuBarVo> listMenuBar();

    /**
     * 查询最大的OrderNo
     * @return int
     */
    int getMaxOrderNo();

    /**
     * 列出AutoOwn的menu的featureId
     * @return List
     */
    List<String> listAutoOwnMenuFeatureIds();

    /**
     * 列出非 AutoOwn 的 menu
     * @return List
     */
    List<String> listNotAutoOwnMenus();
    /**
     * 通过角色查询菜单列表
     * @param  userRole userRole
     * @return List
     */
    List<MenuBarVo> listMenuByUserRol(String userRole);

}
